<?php 
      echo $this->Html->css("chosen");
      echo $this->Html->css("validationEngine.jquery");
 ?>
<script type="text/javascript" src="<?php echo $this->webroot; ?>js/customInput.jquery.js"></script>
<script type="text/javascript" src="<?php echo $this->webroot; ?>js/chosen.js"></script>
<script type="text/javascript" src="<?php echo $this->webroot; ?>js/zice.custom1.js"></script>
<script type="text/javascript" src="<?php echo $this->webroot; ?>js/manager_retail_invoice.js"></script>
<script type="text/javascript" src="<?php echo $this->webroot; ?>js/layout_manager.js"></script>
<script type="text/javascript" src="<?php echo $this->webroot; ?>js/jquery.validationEngine.js"></script>
<script type="text/javascript" src="<?php echo $this->webroot; ?>js/jquery.validationEngine-vi.js"></script>
<script type="text/javascript" src="<?php echo $this->webroot; ?>js/jquery.autotab.js"></script>

<div class="titlePage">
<h1>Quản lý kho lẻ - Bán hàng</h1>
</div>

<div class="onecolumn vendor">
	<div class="header">
	<span>
		<span class="ico gray user"></span>
		KHÁCH HÀNG
	</span>
	</div>
	<div class="clear"></div>
	<div class="content">
		<form id="validation">
			<div class="newCusRe">
				<h4> Thông tin khách hàng</h4>
				<div class="section">
					<label>
					Chủ cửa hàng:
					</label>
					<div>
						<input class="large" type="text" id="cus_name"></div>
					</div>
				<div class="section numericonly">
					<label>
					Điện thoại:
					</label>
					<div>
						<input class="validate[custom[phone]] large" type="text" id="cus_phone"></div>
				</div>
				<div class="section">
					<label>
					Địa chỉ:
					</label>
					<div>
						<input class="large" type="text" id="cus_address"></div>
				</div>
			</div>
			<div class="newWholesaleInvoice" id='WholesaleInvoice'>
				<div id='result_choose_cus'>
					
				</div>
				<h4> Danh sách sản phẩm xuất</h4>
				<div class="section listP nameListPWh">
					<label>
					Tên sản phẩm:
					</label>
				</div>
				<div class="section listP priceListPWh">
					<label>
					Giá sản phẩm:
					</label>
				</div>
				<div class="section listP countListPWh">
					<label>
					Số lượng:
					</label>
				</div>
				<div id="list_product">
				<div id='result_choose_product'></div>
				</div>
				<div>
					<div class="totalPrice"><h3>Tổng cộng: </h3></div><div id="sum_result" class="formatMoney">0 đ</div>
				</div>
				<div class="buttonNewListProduct">
					<a class="uibutton icon add" id='create_retail_invoice'>Tạo hóa đơn</a>
					<div id='alert_mes'></div>
					<div id='btnPrintInvoice'></div>
				</div>
			</div>
		</form>
	</div>
</div>

<div class="onecolumn product">
	<div class="header">
	<span>
		<span class="ico gray shopping_basket"></span>
		SẢN PHẨM
	</span>
	</div>
	<div class="clear"></div>
	<div class="content">
		<form id="validation">
			<div class="section">
				<label>
				Chọn sản phẩm:
				
				</label>
				<div id="search_product">
					<select data-placeholder="Chọn sản phẩm..." class="chzn-select choose_product" tabindex="2" >
                          <option value=""></option> 
                          <?php foreach ($products as $item) {?>
							<option value="<?php echo $item['p']['id'].'_product'; ?>"><?php echo $item['p']['name']." (".$item['u']['father']."/".$item['u']['convert']." ".$item['u']['child'].")";}?></option>
                     </select>
					
				</div>
				<label>
					Mã vạch:				
				</label>
				<div>
					<input class="validate[custom[onlyNumberSp]] large" type="text" id="product_barcode">
				</div>
				<div id="result_product"></div>
				<div id="alert_product"></div>
			</div>
				
		</form>
	</div>
</div>

